package com.LittleHan.crm.exceptionHandler;

import com.LittleHan.crm.exception.ClueUpdateException;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

@ControllerAdvice
public class ClueUpdateExceptionHandler {
    @ExceptionHandler(ClueUpdateException.class)
    public String clueUpdateException(Exception e){
        return "{\"yesOrNo\",\"no\"}";
    }
}
